Repository navigation
fix(events): stop Turbopack tracing the whole project - #17
Merged
Merged
Conversation
…loader
`path.join(process.cwd(), "data/events")` made Turbopack trace every
file in the project ("Dynamic filesystem access causes tracing of the
whole project"). Mark it `turbopackIgnore`: the dataset is only read at
build time, since all event pages are statically generated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01E7SxC2W368CjNq9H2oNu2x
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the build warning:
EVENTS_DIRis built fromprocess.cwd(), so Turbopack traced the whole project for every route that imports the loader. Marking the path/* turbopackIgnore: true */stops that. The dataset is only read at build time: all event pages are statically generated, and the only routes rendered on request (the[lang]OG and Twitter images) don't use it. So nothing needs to be added back to the trace.next buildpasses with no warnings.🤖 Generated with Claude Code
https://claude.ai/code/session_01E7SxC2W368CjNq9H2oNu2x